package pattern19;

/**
 * Invoker类，要求该命令执行这个请求
 * @author wdl
 */
public class Invoker {
    private BaseCommand command;

    /**
     * 设置具体的命令
     * @param command 具体命令
     */
    public void setCommand(BaseCommand command){
        this.command=command;
    }
    public void executeCommand(){
        command.execute();
    }
}
